package com.homework.Tools;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Print_Systime {
  public static void main(String[] args) {
    //按照”2016/08/08 22:22:00”的格式打印当前系统时间

      Date now = new Date();
      SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
      String s = sdf.format(now);
      System.out.println(s);
  }
}
